-
Notifications
You must be signed in to change notification settings - Fork 4.9k
giving time for the device to be discovered after burning fw #13961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
giving time for the device to be discovered after burning fw #13961
Conversation
unit-tests/test-fw-update.py
Outdated
@@ -242,6 +242,20 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ): | |||
time.sleep(3) # MIPI devices do not re-enumerate so we need to give them some time to restart | |||
devices.query( monitor_changes = False ) | |||
sn_list = devices.all() | |||
sn_list_size = len(sn_list) | |||
if sn_list_size == 0: | |||
retries = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
30 seconds timeout is too long IMO.
Maybe we can do 5x2 sec?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is 3 seconds at each iteration, and it usually succeeds at the third iteration.
30 seconds is only the worst case - I agree it should not occur...
So you mean 5 iterations of 2 seconds each - OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
unit-tests/test-fw-update.py
Outdated
@@ -242,6 +244,20 @@ def find_image_or_exit( product_name, fw_version_regex = r'(\d+\.){3}(\d+)' ): | |||
time.sleep(3) # MIPI devices do not re-enumerate so we need to give them some time to restart | |||
devices.query( monitor_changes = False ) | |||
sn_list = devices.all() | |||
sn_list_size = len(sn_list) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we want to do it in the rs-fw-update tool like we do on usb?
And print the new device version ?
b14b767
to
c0a5a26
Compare
1386509
to
da6881b
Compare
@@ -31,6 +31,14 @@ | |||
|
|||
using rsutils::json; | |||
|
|||
std::condition_variable cv; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason to move from main
to global?
access from any place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes - especially from the code that I have moved from main to private methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
684cf10
into
IntelRealSense:development
Tracked by: RSDSO-20159